#include "StdAfx.h"
#include "../Vocoder/PerformanceMonitor.h"
#include "OutputBuffer.h"

OutputBuffer::OutputBuffer(PerformanceMonitor* performance)
{
	this->performance = performance;
}

OutputBuffer::~OutputBuffer(void)
{
}

void OutputBuffer::NewSample(short* sample, unsigned int length)
{
	performance->ReceivedVocoded(length);
	for(unsigned int i=0; i<length; i++)
	{
		buffer.push_back(sample[i]);
	}
}
